package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.LoginBean;
import cn.xfdzx.android.apps.shop.bean.LogininfoBean;
import cn.xfdzx.android.apps.shop.contract.LoginContract;
import cn.xfdzx.android.apps.shop.contract.OtherLoginContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import cn.xfdzx.android.apps.shop.presenter.OtherLoginPresenter;
import io.reactivex.Flowable;

/**
 * @author zf
 * @date 2020/6/27.
 * Description：
 */
public class OtherLoginModel implements OtherLoginContract.Model {

    @Override
    public Flowable<LogininfoBean> loginCode(String mobile, String code) {
        return RetrofitClient.getInstance().getApi().loginCode(mobile,code);
    }

    @Override
    public Flowable<LogininfoBean> sendSms(String mobile,String code_type) {
        return RetrofitClient.getInstance().getApi().sendSms(mobile,code_type);
    }

    @Override
    public Flowable<LogininfoBean> checkBindPhone(String code) {
        return RetrofitClient.getInstance().getApi().checkBindPhone(code);
    }

    @Override
    public Flowable<LogininfoBean> wechatLogin(String hash, String mobile,String smsCode) {
        return RetrofitClient.getInstance().getApi().wechatLogin(hash,mobile,smsCode);
    }

}
